import Vue from 'vue'
import Vuex from 'vuex'
// 引入封装的模块getters 将模块抽离出来方便数据的管理
import getters from './getters'
import app from './modules/app'

import settings from './modules/settings'
//
import user from './modules/user'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user
  },
  getters
})

export default store
